find the product of the terms